package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author pan
 * @since 2020-09-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmQrPatrol对象", description="")
public class CrmQrPatrol implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "二维码编号")
    @TableField("code_number")
    private String codeNumber;

    @ApiModelProperty(value = "所属园区")
    @TableField("area_manage_id")
    private Long areaManageId;

    @ApiModelProperty(value = "所属楼栋")
    @TableField("building_id")
    private Long buildingId;

    @ApiModelProperty(value = "所属部门")
    @TableField("dept_id")
    private Long deptId;

    @ApiModelProperty(value = "状态（1、使用；0、未使用）")
    @TableField("QR_status")
    private Integer qrStatus;

    @ApiModelProperty(value = "二维码图片存放路径")
    @TableField("QR_code_path")
    private String qrCodePath;

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private String createUser;

    @ApiModelProperty(value = "描述")
    @TableField("desc")
    private String desc;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "操作用户名称")
    @TableField(exist = false)
    private String operateUser;

    @ApiModelProperty(value = "所属楼栋名称")
    @TableField(exist = false)
    private String areaManagerName;

    @ApiModelProperty(value = "所属园区名称")
    @TableField(exist = false)
    private String buildingName;

    @ApiModelProperty(value = "所属部门名称")
    @TableField(exist = false)
    private String deptName;
}
